#include "qlogger.hpp"

void QLoggerConsoleAppender::write (const QLoggerEvent &event)
{
    mutex.lock();
    QTextStream out(stream);
    streamWrite(out, event);
    mutex.unlock();
}

QLoggerConsoleAppender::QLoggerConsoleAppender (int level, FILE *stream, const QString &format) :
QLoggerAppender(format, level)
{
    this->stream = stream;
}


